@layout("/common/_container.html",{js:["/assets/project/projectMemberWork_user_self.js"]}){

<div class="layui-body-header">
    <span class="layui-body-header-title">管理</span>
</div>

<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-sm12 layui-col-md12 layui-col-lg12">
            <div class="layui-card">
                <div class="layui-card-body">
                    <div class="layui-form toolbar">
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <input id="range" class="layui-input" type="text" placeholder="上报日期范围"/>
                            </div>
                            @if(shiro.hasRole("XMJL") || shiro.hasRole("administrator")){
                            <div class="layui-inline">
                                <select  lay-search="" id="userId" placeholder="直接选择或搜索选择人员">
                                    <option value="">直接选择或搜索选择人员</option>
                                    @for(item in users){
                                    <option value="${item.userId}">${item.name}</option>
                                    @}
                                </select>
                            </div>
                            <div class="layui-inline">
                                <select lay-search="" id="projectId" >
                                    <option value="">项目名称</option>
                                    @for(item in myProjects){
                                    <option value="${item.id}">${item.name}</option>
                                    @}
                                </select>
                            </div>
                            @}else{
                            <div class="layui-inline">
                                <select lay-search="" id="projectId" >
                                    <option value="">项目名称</option>
                                    @for(item in myProjects){
                                    <option value="${item.projectId}">${item.projectName}</option>
                                    @}
                                </select>
                            </div>
                            @}

                            <div class="layui-inline">
<button id="btnAdd" class="layui-btn icon-btn"><i class="layui-icon">&#xe654;</i>添加</button>
                                <button id="btnExp" class="layui-btn icon-btn"><i class="layui-icon">&#xe67d;</i>导出</button>
                            </div>
                        </div>
                    </div>
                    <table class="layui-table" id="projectMemberWorkTable" lay-filter="projectMemberWorkTable"></table>
                </div>
            </div>
        </div>
    </div>
</div>

<script type="text/html" id="tableBar">
    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="edit">修改</a>
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="delete">删除</a>
</script>
@}